1. The One-Time "Permanent Fix"

Run these commands once to tell Debian/OMV to always keep the blueprints updated alongside the kernel:

Bash

# 1. Install the 'meta-package' that always pulls the latest headers
apt update
apt install linux-headers-amd64 dkms

# 2. Ensure your current driver is actually registered with DKMS
# (This ensures it auto-rebuilds on future updates)
apt install --reinstall nvidia-kernel-dkms

2. The Correct Way to Update OMV

From now on, do not just click "Update" in the Web UI if you want to be 100% safe. Use the terminal for "Big" updates (kernels).

The Safe Update Routine:

  1. Run the update:

    Bash

    omv-upgrade
    
  2. Check DKMS status BEFORE rebooting:

    Bash

    dkms status
    
    • If it says installed, you are good to go.

    • If it says added, run: dkms autoinstall

  3. Reboot.


3. Emergency "It Broke Again" Checklist

If you ever run nvidia-smi and it fails after an update, this 3-line sequence will fix it every single time:

Bash

# Line 1: Get the headers for whatever kernel OMV just gave you
apt install linux-headers-$(uname -r)

# Line 2: Force the driver to build itself for this new kernel
dkms autoinstall

# Line 3: Load the driver into memory
modprobe nvidia